package com.baibei.ebec.home.index.holder;

import android.support.v7.widget.CardView;
import android.view.View;
import android.widget.ImageView;
import android.widget.TextView;

import com.baibei.basic.SimpleViewHolder;
import com.baibei.ebec.home.R2;
import com.baibei.model.ProductInfo;
import com.baibei.model.ShipmentInfo;

import org.w3c.dom.Text;

import butterknife.BindView;
import butterknife.ButterKnife;

/**
 * 船的产品单个列表
 * Created by ChenRui on 2017/8/4 0004 14:38.
 */
public class ShipmentProductViewHolder extends SimpleViewHolder {

    public interface OnProductClickListener {
        void onProductTradeClick(ShipmentInfo shipmentInfo, ProductInfo productInfo);
    }


    @BindView(R2.id.img_good)
    ImageView mProductImage;
    @BindView(R2.id.tv_title)
    TextView mTitleView;
    @BindView(R2.id.tv_number)
    TextView mNumberView;
    @BindView(R2.id.tv_price)
    TextView tvPrice;

    @BindView(R2.id.btn_order)
    CardView btnOrder;
    @BindView(R2.id.tv_order_price)
    TextView tvOrderPrice;


    public ShipmentProductViewHolder(View view) {
        super(view);
        ButterKnife.bind(this, view);
    }

    public ImageView getProductImageView() {
        return mProductImage;
    }

    public TextView getTitleView() {
        return mTitleView;
    }

    public TextView getNumberView() {
        return mNumberView;
    }

    public TextView getPriceView() {
        return tvPrice;
    }

    public View getBtn() {
        return btnOrder;
    }

    public TextView getOrderPrice(){
        return tvOrderPrice;
    }
}
